#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <sys/types.h>
#include <signal.h>
#include <string>
#include <stdlib.h>

using namespace std;

void Usage(string str)
{
	cout << "Usage:" << str << "signalnumber" << " " << "pid" << endl;
}

int main(int argc, char* argv[])
{
	if (argc != 3)
	{
		Usage(argv[0]);
		exit(1);
	}

	int signalNumber = atoi(argv[1]);
	int pid = atoi(argv[2]);

	kill(pid, signalNumber);
	return 0;
}